<link href="../addons/jy_lianfeeshop/resource/css/style.css" rel="stylesheet">
<style>
.fui-tab a{
    color: #eee;
}
.fui-tab:after {
    height: 0;
    background: none;
}
.fui-tab.fui-tab-success a.active {
    color: #fff;
	font-weight:bold;
}
.banyuan{
	padding:0.5rem;
	height: 7rem;
	border-radius: 7rem 7rem 0 0;
	border: 4px solid #f60;
}
</style>
<div class="fui-page fui-page-current page-commission-down">
    <div class="fui-content">
		<div style="background: {{main.syscolor||'#05c175'}};padding:0.5rem;margin-top:0;padding-bottom:1.6rem;height:5rem">
			<div class="fui-tab fui-tab-success" style="background:none">
				<a ng-click="pagedata.params.type=0;tool.get_list('jy_lianfeeshop/order/list/',true)" ng-class="{'active':pagedata.params.type==0}" href="javascript:;">推荐奖</a>
				<a ng-click="pagedata.params.type=9;tool.get_list('jy_lianfeeshop/order/list/',true)" ng-class="{'active':pagedata.params.type==9}" href="javascript:;">复购奖</a>
			</div>
		</div>
		<div style="padding:0.5rem;margin-top:-2.3rem">
		 <div ng-if="pagedata.params.type!=9" class="fui-cell-group radius" style='margin-top:0px;'>
			<div class='fui-cell-title' style='padding:1rem 3rem;padding-bottom:0'>
				<div class="banyuan c">
					<div style="font-size:0.65rem;padding-top:0.3rem"><span class="syscolor">●</span> 累计收益</div>
					<div>{{pagedata.commission_total0 || '0.00'}}</div>
					<div style="font-size:0.65rem;padding-top:0.6rem"><span class="syscolor">●</span> 收益笔数</div>
					<div class="bold" style="font-size:1rem">{{pagedata.ordernum0 || '0.00'}}</div>
				</div>
				<div style='background:#fff;height:1.2rem;margin-top:-1rem'></div>
			</div>
			<div class="fui-icon-group noborder  col-3" style="padding-top:0;margin-top:-1.3rem;padding-bottom:0.5rem">
				<div class="fui-icon-col-sm external" style="margin:0">
								<div>
									<div class=" bold syscolor" style="line-height:1.6rem;font-size:0.8rem">{{pagedata.totalday0 || '0.00'}}</div>
									<div class="subtitle" style="font-size:0.7rem;">今日收益</div>
								</div>
					</div>
					<div class="fui-icon-col-sm external" style="margin:0">
								<div>
									<div class=" bold syscolor" style="line-height:1.6rem;font-size:0.8rem">{{pagedata.totallastday0 || '0'}}</div>
									<div class="subtitle" style="font-size:0.7rem;">昨日收益</div>
								</div>
					</div>
					<div class="fui-icon-col-sm external" style="margin:0">
								<div>
									<div class=" bold syscolor" style="line-height:1.6rem;font-size:0.8rem">{{pagedata.commission_total0 || '0.00'}}</div>
									<div class="subtitle" style="font-size:0.7rem;">合计收益</div>
								</div>
					</div>
			</div>
        </div>
		<div ng-if="pagedata.params.type==9" class="fui-cell-group radius" style='margin-top:0px;'>
			<div class='fui-cell-title' style='padding:1rem 3rem;padding-bottom:0'>
				<div class="banyuan c">
					<div style="font-size:0.65rem;padding-top:0.3rem"><span class="syscolor">●</span> 累计收益</div>
					<div>{{pagedata.commission_total9 || '0.00'}}</div>
					<div style="font-size:0.65rem;padding-top:0.6rem"><span class="syscolor">●</span> 收益笔数</div>
					<div class="bold" style="font-size:1rem">{{pagedata.ordernum9 || '0.00'}}</div>
				</div>
				<div style='background:#fff;height:1.2rem;margin-top:-1rem'></div>
			</div>
			<div class="fui-icon-group noborder  col-3" style="padding-top:0;margin-top:-1.3rem;padding-bottom:0.5rem">
				<div class="fui-icon-col-sm external" style="margin:0">
								<div>
									<div class=" bold syscolor" style="line-height:1.6rem;font-size:0.8rem">{{pagedata.totalday9 || '0.00'}}</div>
									<div class="subtitle" style="font-size:0.7rem;">今日收益</div>
								</div>
					</div>
					<div class="fui-icon-col-sm external" style="margin:0">
								<div>
									<div class=" bold syscolor" style="line-height:1.6rem;font-size:0.8rem">{{pagedata.totallastday9 || '0'}}</div>
									<div class="subtitle" style="font-size:0.7rem;">昨日收益</div>
								</div>
					</div>
					<div class="fui-icon-col-sm external" style="margin:0">
								<div>
									<div class=" bold syscolor" style="line-height:1.6rem;font-size:0.8rem">{{pagedata.commission_total9 || '0.00'}}</div>
									<div class="subtitle" style="font-size:0.7rem;">合计收益</div>
								</div>
					</div>
			</div>
        </div>
        <div  class="fui-list-group" id="container" >
		<div ng-repeat="item in pagedata.list track by item.id" class="fui-list">
			<div class="fui-list-media">
				<img ng-if="item.member.avatar" ng-src="{{tomedia(item.member.avatar)}}" class="round" style="width:2rem;height:2rem">
				<i ng-if="!item.member.avatar" class="icon icon-my2"></i>
			</div>
			<div class="fui-list-inner">
				<div class="row">
				      <div class="row-text" > 
					 {{item.member.nickname}}
				      </div>
				</div>
				<div class="subtitle">
				    {{item.ordersn}}
				</div>
				<div class="subtitle">
				    商品:{{item.goodstitle || '无'}}
				</div>
			</div>
			<div class="row-remark">
				<div class="text">预计佣金:{{item.money}}元</div>
				<div class="text" ng-if="item.dong_fee>0">{{item.isjiedong==1?'已解冻':'现冻结'}}:{{item.dong_fee}}</div>
				<div class="text"><i class="fui-tag fui-tag-red">{{item.type}}</i> <i class="fui-tag fui-tag-blue">{{item.statustitle}}</i></div>
			</div>
			
		</div>
		</div>
		<div class='infinite-loading' style="display:none" id="loading_show"><span class='fui-preloader'></span><span class='text'> 正在加载...</span></div>
		<div ng-if="pagedata.list.length==0" class='content-empty' >
			<!--<i class='icon icon-group'></i><br/>暂时没有任何数据-->
			<img src="../core/resource/images/nomeb.png" style="width: 6rem;margin-bottom: .5rem;"><br/><p style="color: #999;font-size: .75rem">暂时没有任何数据</p>
		</div>

    </div>
</div>
<div ng-include="sys_html('_footer')"></div>
<script>
scope.tool.get_list('jy_lianfeeshop/order/list/',true);
scope.pagedata.scroll_bottom=function(){
	scope.tool.get_list('jy_lianfeeshop/order/list/');
}
</script>

